home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / docfile.arc / COMPARE.DOC < prev    next >
Encoding:
Text File  |  1988-11-15  |  1.9 KB  |  49 lines

  1.  
  2. COMPARE
  3. Command
  4.  
  5. Michael J. Mefford                             1988 No. 11
  6. (Utilities)
  7.  
  8.  
  9. Purpose:    Displays the differences between two text or two
  10. binary files.  Files need not be the same length, and paragraph reformatting 
  11. changes introduced by word wrap are ignored.
  12.  
  13. Format:    COMPARE filespec filespec[/B][/W]
  14.  
  15. Remarks: COMPARE's default assumption is that the filenames designated in
  16. filespec are to be compared as ASCII text files.   Formatting commands
  17. embedded by word processing programs are reproduced on screen but are not
  18. acted upon.   Files in which the "high bit" is set (such as those produced by
  19. WordStar's document mode) can be made displayable in ASCII by entering the
  20. optional /W on the command line.
  21.  
  22.     Files are displayed in two on-screen windows.  Differences are shown
  23. in inverse video, and are preceeded by several lines of matching text to
  24. provide a context.  When the windows are filled, pressing any key continues to
  25. search for differences; pressing Esc returns the user to DOS.  All character
  26. modes, but no graphics modes, are supported.  
  27.  
  28.     Files with .COM or .EXE extensions are automatically displayed in
  29. COMPARE's binary mode, which is similar to that produced by DEBUG.COM.  Unlike
  30. DEBUG, however, COMPARE uses the IBM/ASCII symbol set rather than periods to
  31. show non-alphanumeric characters, and its segment offset begins at zero rather
  32. than at 100h.  Any file can be compared in binary mode by adding the optional
  33. /B switch on the command line.
  34.  
  35. Note:    When COMPARE finds a difference between files it searches ahead up to
  36. 400 bytes (the reach value) for a string of 10 (excluding spaces) successive
  37. matching characters (the sequence value).  DEBUG.COM can be used to change the
  38. reach and search values on a copy of COMPARE.COM thus: 
  39.  
  40.     DEBUG COMPARE.COM
  41.     E 6ED cd ab
  42.     E 6F5 cd ab
  43.     E 6F9 gh ef
  44.     W
  45.     Q
  46.  
  47.     where abcd is the reach value, in hex (default 0190h) and efgh is the
  48. sequence value (default 000Ah).
  49.